package HomeWork.chapter05;

/**
 * Enjoy programming!!!
 * Time: 2021/12/1 -  21:04
 */
public class Char_ {
    public static void main(String[] args){
        char[] row = {'h', 'e', 'l','l','o', ' ','w','o','r','l','d'};
        char[] result = new char[row.length];
        for (int i = 0; i < row.length; i++){
            result[i] = (char)(row[i] - 32);
        }
        for (int i = 0; i < result.length; i++) {
            System.out.print(result[i]);
        }
        System.out.println();
        for (int i = 0; i < result.length; i++){
            System.out.println(i + ":" + result[i]);
        }

    }
}
